//订单信息接口
import axios from "../utils/axios";

//查看所有订单信息
export function lookAllOrders() {
    return axios.get("/orders");
}

//条件查找订单
export function lookOrdersByCondition(orders) {
    return axios.post("/orders/con", orders);
}

//新增一条订单信息
export function insertOneOrder(orders) {
    return axios.post("/orders", orders);
}

//修改一条订单信息
export function updateOneOrder(orders) {
    return axios({
        url: "/orders",
        method: "PUT",
        data: orders,
    });
}

//删除订单信息
export function deleteOrder(ids) {
    return axios({
        url: "/orders",
        method: "DELETE",
        data: ids,
    });
}
